package com.edu.service;

import org.springframework.transaction.annotation.Transactional;
import com.edu.dao.ProductDao;
import com.edu.entity.Product;

@Transactional
public class ProductService {

	private ProductDao productDao;

	public void setProductDao(ProductDao productDao) {
		this.productDao = productDao;
	}
	
	public void save(Product product){
		System.out.println("执行service中的save方法");
		productDao.save(product);
	}
}
